package org.netEase.controller;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.netEase.dao.*;
import org.netEase.dao.impl.*;
import org.netEase.entity.*;

@WebServlet(urlPatterns = { "/backstageManager/adminsuer.shtml" })
public class adminuser extends HttpServlet  {
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		zhanghuDao zhanghudao=new zhanghuimpl();
		List<zhanghu> zhanghu=zhanghudao.getAid();
		request.setAttribute("zhanghu",zhanghu);
		request.getRequestDispatcher("/backstageManager/admin-role.jsp").forward(request, response);
		
		
		
	}
	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		this.doGet(request, response);
	}

}
